package com.steven.im.entity;

import java.util.List;

/**
 * Created by Steven on 2019/1/25.
 */
public class SubmitOrderEntity {

    /**
     * code : 0
     * message : 生成订单成功
     * result : {"paymentAmount":"1999.00","goodsId":"3","previewImage":"http://yiyuanyungoutest.oss-cn-shanghai.aliyuncs.com/goods/1548061587556.jpg","originalPrice":"0.00","defaultAddress":{"addressId":"22","receiver":"wangzhiyu","mobile":"13213538793","address":"中国,山西省,阳泉市,郊区,wangzhiyu\n52193","status":"1"},"goodsTitle":"三星 Galaxy A6s","discountPrice":"1999.00","paymentList":[{"paymentLogo":"https://tuoshang.oss-cn-shanghai.aliyuncs.com/payment/Alipay.png","paymentName":"支付宝支付","paymentCode":"Alipay","paymentStatus":"0"},{"paymentLogo":"https://tuoshang.oss-cn-shanghai.aliyuncs.com/payment/WeChat.png","paymentName":"微信支付","paymentCode":"WeChat","paymentStatus":"0"}],"orderId":"67","addTime":"2019-01-25 22:52:38.529","shoppingCurrency":"0.00"}
     */

    private String code;
    private String message;
    private ResultBean result;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public static class ResultBean {
        /**
         * paymentAmount : 1999.00
         * goodsId : 3
         * previewImage : http://yiyuanyungoutest.oss-cn-shanghai.aliyuncs.com/goods/1548061587556.jpg
         * originalPrice : 0.00
         * defaultAddress : {"addressId":"22","receiver":"wangzhiyu","mobile":"13213538793","address":"中国,山西省,阳泉市,郊区,wangzhiyu\n52193","status":"1"}
         * goodsTitle : 三星 Galaxy A6s
         * discountPrice : 1999.00
         * paymentList : [{"paymentLogo":"https://tuoshang.oss-cn-shanghai.aliyuncs.com/payment/Alipay.png","paymentName":"支付宝支付","paymentCode":"Alipay","paymentStatus":"0"},{"paymentLogo":"https://tuoshang.oss-cn-shanghai.aliyuncs.com/payment/WeChat.png","paymentName":"微信支付","paymentCode":"WeChat","paymentStatus":"0"}]
         * orderId : 67
         * addTime : 2019-01-25 22:52:38.529
         * shoppingCurrency : 0.00
         */

        private String paymentAmount;
        private String goodsId;
        private String previewImage;
        private String originalPrice;
        private DefaultAddressBean defaultAddress;
        private String goodsTitle;
        private String discountPrice;
        private String orderId;
        private String addTime;
        private String shoppingCurrency;
        private List<PaymentListBean> paymentList;

        public String getPaymentAmount() {
            return paymentAmount;
        }

        public void setPaymentAmount(String paymentAmount) {
            this.paymentAmount = paymentAmount;
        }

        public String getGoodsId() {
            return goodsId;
        }

        public void setGoodsId(String goodsId) {
            this.goodsId = goodsId;
        }

        public String getPreviewImage() {
            return previewImage;
        }

        public void setPreviewImage(String previewImage) {
            this.previewImage = previewImage;
        }

        public String getOriginalPrice() {
            return originalPrice;
        }

        public void setOriginalPrice(String originalPrice) {
            this.originalPrice = originalPrice;
        }

        public DefaultAddressBean getDefaultAddress() {
            return defaultAddress;
        }

        public void setDefaultAddress(DefaultAddressBean defaultAddress) {
            this.defaultAddress = defaultAddress;
        }

        public String getGoodsTitle() {
            return goodsTitle;
        }

        public void setGoodsTitle(String goodsTitle) {
            this.goodsTitle = goodsTitle;
        }

        public String getDiscountPrice() {
            return discountPrice;
        }

        public void setDiscountPrice(String discountPrice) {
            this.discountPrice = discountPrice;
        }

        public String getOrderId() {
            return orderId;
        }

        public void setOrderId(String orderId) {
            this.orderId = orderId;
        }

        public String getAddTime() {
            return addTime;
        }

        public void setAddTime(String addTime) {
            this.addTime = addTime;
        }

        public String getShoppingCurrency() {
            return shoppingCurrency;
        }

        public void setShoppingCurrency(String shoppingCurrency) {
            this.shoppingCurrency = shoppingCurrency;
        }

        public List<PaymentListBean> getPaymentList() {
            return paymentList;
        }

        public void setPaymentList(List<PaymentListBean> paymentList) {
            this.paymentList = paymentList;
        }

        public static class DefaultAddressBean {
            /**
             * addressId : 22
             * receiver : wangzhiyu
             * mobile : 13213538793
             * address : 中国,山西省,阳泉市,郊区,wangzhiyu
             * 52193
             * status : 1
             */

            private String addressId;
            private String receiver;
            private String mobile;
            private String address;
            private String status;

            public String getAddressId() {
                return addressId;
            }

            public void setAddressId(String addressId) {
                this.addressId = addressId;
            }

            public String getReceiver() {
                return receiver;
            }

            public void setReceiver(String receiver) {
                this.receiver = receiver;
            }

            public String getMobile() {
                return mobile;
            }

            public void setMobile(String mobile) {
                this.mobile = mobile;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }
        }

        public static class PaymentListBean {
            /**
             * paymentLogo : https://tuoshang.oss-cn-shanghai.aliyuncs.com/payment/Alipay.png
             * paymentName : 支付宝支付
             * paymentCode : Alipay
             * paymentStatus : 0
             */

            private String paymentLogo;
            private String paymentName;
            private String paymentCode;
            private String paymentStatus;

            public String getPaymentLogo() {
                return paymentLogo;
            }

            public void setPaymentLogo(String paymentLogo) {
                this.paymentLogo = paymentLogo;
            }

            public String getPaymentName() {
                return paymentName;
            }

            public void setPaymentName(String paymentName) {
                this.paymentName = paymentName;
            }

            public String getPaymentCode() {
                return paymentCode;
            }

            public void setPaymentCode(String paymentCode) {
                this.paymentCode = paymentCode;
            }

            public String getPaymentStatus() {
                return paymentStatus;
            }

            public void setPaymentStatus(String paymentStatus) {
                this.paymentStatus = paymentStatus;
            }
        }
    }
}
